//
//  YWLiveHeaderView.m
//  网易新闻
//
//  Created by Yeewii@hotmail.com on 16/6/29.
//  Copyright © 2016年 Yeewii@hotmail.com. All rights reserved.
//

#import "YWLiveHeaderView.h"
#import "Constants.h"

@interface YWLiveHeaderView ()
@property (nonatomic,strong) UIView *tagView;
@property (nonatomic,strong) UILabel *titleLabel;
@end

@implementation YWLiveHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        _tagView                 = [UIView new];
        _tagView.backgroundColor = [UIColor redColor];
        _tagView.frame           = CGRectMake(10, (44-5)/2.0, 5, 5);
        [self addSubview:_tagView];

        _titleLabel              = [UILabel new];
        _titleLabel.frame        = CGRectMake(20, 0, MAINWIDTH, 44);
        _titleLabel.font         = [UIFont systemFontOfSize:14];
        _titleLabel.textColor    = [UIColor blueColor];
        [self addSubview:_titleLabel];
    }
    return self;
}
+(CGFloat)fixHeaderViewHeight;
{
    return 44;
}

-(void)setModel:(ZYLiveT1462958418713 *)model
{
    _model           = model;
    _titleLabel.text = _model.subtitle;
}
@end
